package com.example.springmybatis.mapper;

import com.example.springmybatis.entity.Community;
import com.example.springmybatis.entity.Communitycategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface Communitymapper {

    @Select("select title,community_img,category_id,author,author_img,content from community")
    List<Community> selectAll();

    @Select("select category_id,category_name from communitycategory")
    List<Communitycategory> selectcateAll();
}

